package HttpBean.Request;

import java.util.HashMap;
import java.util.Map;

public class RequestHeader {
    public Map<String,String> map;

    public RequestHeader() {
        this.map = new HashMap<>();
    }

    public void insert(String str){
        String[] strs = str.split(": ");
        map.put(strs[0],strs[1]);
    }

    public Map<String, String> getMap() {
        return map;
    }

    @Override
    public String toString() {
        return "RequestLine{" +
                "map=" + map.toString() +
                '}';
    }
}
